/***API***/
import * as baseAPI from "@/api";
import qs from "qs";
const request = baseAPI.request;

const API = {
  getList: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKGetOutStorage",
      data: obj
    };
    return request(requestData);
  },
  getDetailsList: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKGetOutStorageDetail",
      data: obj
    };
    return request(requestData);
  },

  getOrderDetailsList: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKGetOutStorageDetail",
      data: obj
    };
    return request(requestData);
  },

  getReceiveGoodsList: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKRptItemStock",
      data: obj
    };
    return request(requestData);
  },

  delete: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKDelOutStorage",
      data: obj
    };
    return request(requestData);
  },

  audit: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKConfirmOutStorage",
      data: obj
    };
    return request(requestData);
  },

  repeal: obj => {
    let requestData = {
      method: "post",
      url: "VCK/CancelOutstorage",
      data: obj
    };
    return request(requestData);
  },

  getWorkOrder: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKGetOutStorageWorkOrder2",
      data: obj
    };
    return request(requestData);
  },

  getDepartment: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKGetOutStorageDepartment2",
      data: obj
    };
    return request(requestData);
  },

  getCateNameList: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKGetItemCate",
      data: obj
    };
    return request(requestData);
  },

  getOutTypeList: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKGetInOutCate",
      data: obj
    };
    return request(requestData);
  },

  saveOutInList: obj => {
    let requestData = {
      method: "post",
      url: "VCK/ywCKAddOutStorage",
      data: obj
    };
    return request(requestData);
  }
};

export default API;
